﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Globalization;

namespace OnlineMediaAnalyzer.Models
{
    public class FeedStatistic
    {
        public int ID { get; set; }

        public int FeedID { get; set; }
        public virtual Feed Feed { get; set; }

        [Required(ErrorMessage = "Articles count is required")]
        public int ArticlesCount { get; set; }

        [Required(ErrorMessage = "Political articles count is required")]
        public int PoliticalArticlesCount { get; set; }

        [Required(ErrorMessage = "Multi party articles count is required")]
        public int MultiPartyArticlesCount { get; set; }

        [Required(ErrorMessage = "Party mentions count is required")]
        public int PartyMentionsCount { get; set; }

        [Required(ErrorMessage = "Positive political articles count is required")]
        public int PosPoliticalArticlesCount { get; set; }

        [Required(ErrorMessage = "Negative political articles count is required")]
        public int NegPoliticalArticlesCount { get; set; }

        [Required(ErrorMessage = "Date is required")]
        public DateTime Date { get; set; }
    }
}